package com.zhentao.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2024/3/28 10:49
 * @Author xdm
 **/
@RestController
@RefreshScope  //自动刷新
public class TestController {
    @Value("${val.a}")
    private String a;

    @Value("${val.as}")
    private String as;

    @Value("${val.bs}")
    private String bs;


    @RequestMapping("/getA")
    public String getA(){
        System.out.println(a+";"+as+";"+bs);
        return a+";"+as+";"+bs;
    }
}
